

set(
    SOURCES
    config.h.in

    main.cpp

    gfx/buffer.cpp
    gfx/buffer.h
    gfx/enums.h
    gfx/indexbuffer.cpp
    gfx/indexbuffer.h
    gfx/polyrendermesh.cpp
    gfx/polyrendermesh.h
    gfx/vertexbuffer.cpp
    gfx/vertexbuffer.h

    gfx/shaders/lambert_fs.cg
    gfx/shaders/lambert_vs.cg
    gfx/shaders/render_selection_fs.cg
    gfx/shaders/render_selection_vs.cg

    gui/mainwindow.cpp
    gui/mainwindow.h
    gui/renderwidget.cpp
    gui/renderwidget.h

    math/matrix.h
    math/vector.h
    )


set(
    UI_SOURCES
    gui/mainwindow.ui
    )

set(
    MOC_SOURCES
    gui/mainwindow.h
    gui/renderwidget.h
    )

QT4_WRAP_CPP(
    MOCCED_SOURCES
    ${MOC_SOURCES}
    )

QT4_WRAP_UI(
    UIED_SOURCES
    ${UI_SOURCES}
    )


add_executable(
    inka
    ${SOURCES}
    ${MOCCED_SOURCES}
    ${UIED_SOURCES}
    )

target_link_libraries(
    inka
    ${QT_LIBRARIES}
    ${OPENGL_LIBRARIES}
    ${GLEW_LIBRARIES}
    Cg
    CgGL
    )
